<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<ul class="list-group">
	<c:forEach items="${blogs}" var="blog">
		<li class="list-group-item"><span
			class="glyphicon glyphicon-pencil"></span> <a href="#">${blog.title}</a>
			<span class="pull-right"> <span
				class="glyphicon glyphicon-user"></span> ${blog.user.nickname }
		</span>
			<p class="common-p">${blog.remark}</p>
			<div class="text-right">
				<span class="common-span"> <fmt:formatDate
						pattern="yyyy-MM-dd" value="${blog.publishTime}" />

				</span> <span class="glyphicon glyphicon-eye-open"></span> ${blog.readNum}
			</div></li>
	</c:forEach>
</ul>
<ul class="pagination">
	<li><a onclick="getList(${typeId},${pageView.before})"
		href="javascript:void()">&laquo;</a></li>
	<c:forEach begin="${pageView.start}" end="${pageView.end}" var="num">
		<li <c:if test="${pageView.pageNum==num}">class="active"</c:if>>
			<a onclick="getList(${typeId},${num})" href="javascript:void()">${num}</a>
		</li>
	</c:forEach>
	<li><a onclick="getList(${typeId},${pageView.next})"
		href="javascript:void()">&raquo;</a></li>
</ul>